package cn.itsource.org.mapper;

import cn.itsource.org.domain.Shop;
import cn.itsource.org.query.ShopQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper {
     List<Shop> findAll();

     Shop findOne(Long id);

     void add(Shop shop);

     void update(Shop shop);

     void delete(Long id);

     //批量删除
     void patchdel(Long[] ids);

     Integer queryCount(ShopQuery shopQuery);
     List<Shop> queryData(ShopQuery shopQuery);

    Shop findNameandAddress(Shop shop);

    void updateState(@Param("shopId") Long shopId, @Param("state") int state);

    // 柱状图
    List<Shop> columnChart();

    //导入excel数据 批量添加
    void addBatch(List<Shop> shops);
}
